package com.kinghood.authoritycenter;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * 鉴权中心
 *
 * @author KingHood
 * @date 2024/1/01
 */
@EnableAsync
@EnableFeignClients
@MapperScan(basePackages = "com.kinghood.authoritycenter.dao")
@ComponentScan(basePackages = {"com.kinghood.authoritycenter", "com.kinghood.redis","com.kinghood.sharding.model", "com.kinghood.infrastructure"})
@EnableDiscoveryClient
@SpringBootApplication
@EnableCaching
public class AuthorityCenterApplication {

    public static void main(String[] args) {
//        System.setProperty("spring.cloud.bootstrap.enabled", "true");
        SpringApplication.run(AuthorityCenterApplication.class, args);
    }

}
